package com.mew.league.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.mew.league.message.CommonResponse;
import com.mew.common.entity.league.League;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author ztq
 * @since 2021-03-24
 */
public interface ILeagueService extends IService<League> {

    CommonResponse createLeague(long uid, League league);

    List<League> getLeagues(String name);

    CommonResponse applicant(long uid,int leagueId);

    boolean inLeague(long uid);
    
}
